#include "map.h"
#include "tile.h"
#include "collision.h"

map::map(int N){

    SDL_Rect destinationRectangle = { 500, 100, 128, 64 };

    for(int i = 0; i < 10; ++i){
        std::vector<tile> vt;
        for(int j = 0; j < 10; ++j){
                SDL_Rect destinationRectangle2;
                destinationRectangle2.x = destinationRectangle.x + (j  * (128 / 2)) - (i * (128 / 2));
                destinationRectangle2.y = destinationRectangle.y + (j  * (64 / 2)) + (i * (64)) - (i * (64 / 2));
                destinationRectangle2.w = destinationRectangle.w;
                destinationRectangle2.h = destinationRectangle.h;
                tile a(destinationRectangle2, 0);
                vt.push_back(a);
        }
        _map.push_back(vt);
    }
}
